package com.njupt.service;

import com.njupt.common.pojo.EasyUIDataGridResult;
import com.njupt.common.pojo.TaotaoResult;
import com.njupt.pojo.TbItem;
import com.njupt.pojo.TbItemDesc;
import com.njupt.pojo.TbItemParam;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 15:37 2018/5/24
 * @Modified By:
 **/
public interface ItemService {

    TbItem getItemById(long itemId);

    EasyUIDataGridResult getItemList(int page,int rows);

    TaotaoResult addItem(TbItem item, String  itemDesc);

    TaotaoResult deleteItem(long itemId);

    TaotaoResult inshellItem(long itemId);

    TaotaoResult unshellItem(long itemId);

    TaotaoResult updateItem(TbItem tbItem, String itemDesc, TbItemParam tbItemParam);

    TbItemDesc  getItemDescById(long itemId);
}
